<%@ include file="/WEB-INF/jsp/includes/include.jsp"%>

<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<title>NoAssertions.com</title>
	<link rel="stylesheet" href="<fmt:message bundle="${mess}" key="baseUrl" />css/reset.css" />
	<link rel="stylesheet" href="<fmt:message bundle="${mess}" key="baseUrl" />css/text.css" />
	<link rel="stylesheet" href="<fmt:message bundle="${mess}" key="baseUrl" />css/960.css" />
	<link rel="stylesheet" href="<fmt:message bundle="${mess}" key="baseUrl" />css/nastyle.css" />	
</head>
<%@ include file="/WEB-INF/jsp/includes/bodyheader.jsp"%>

		<!--  start center section -->
		<div id="centerSection" class="grid_12">	
			<div class="grid_2 alpha">
				<img src="<fmt:message bundle="${mess}" key="baseUrl" />img/spacer.gif"/>
			</div>
			<div class="grid_8">
			<h1>Login</h1>
			
				<c:choose>
					<c:when test="${not empty param.login_error}">
						<p class="error">The login process has not been successfully completed. Please ensure your email address and password are correct.</p>
					</c:when>
					<c:otherwise>					
						<p>If you're new to No Assertions, <b><a href="<fmt:message bundle="${mess}" key="servletUrl" />user/new">create a new account</a></b></p>
		          	</c:otherwise>
		        </c:choose>
			    <form name="f" action="<c:url value='j_spring_security_check'/>" method="POST">
			    	<div class="label">Email Address:</div>
					<div class="input">
				        <input type='text' name='j_username' value='<c:if test="${not empty param.login_error}"><c:out value="${SPRING_SECURITY_LAST_USERNAME}"/></c:if>'/>
					</div>
					<div class="label">Password:</div>
					<div class="input">
						<input type='password' name='j_password'>
					</div>
					<div class="input">
			        	<input type="checkbox" name="_spring_security_remember_me">Don't ask for my password for two weeks
					</div>
					<div class="submit">
				        <input name="submit" type="submit">
			        </div>
    			</form>
			</div>
			<div class="grid_2 omega">
			</div>
		</div>
		<div class="clear"></div>
		<!--  end center section -->
<%@ include file="/WEB-INF/jsp/includes/footer.jsp"%>